package com.cd.system.jpa.entityImport;

import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;

/**
* @description 角色和部门关联表 ||  || 
* @author admin
* @date 2024-03-25
*/
@Entity
@Data
@Table(name = "sys_role_dept")
@IdClass(SysRoleDeptKey.class)
public class SysRoleDept implements Serializable {

    private static final long serialVersionUID = 1L;

//    @EmbeddedId
//    private SysRoleDeptKey id;

    @Id
    @Column(name = "role_id")
    private Long roleId;

    @Id
    @Column(name = "dept_id")
    private Long deptId;

}

